Connect Algolia to your headless Salesforce B2C Commerce using the official sample app.
packages/
directory.
unified-instantsearch-ecommerce/.git
directory from the unified-instantsearch-ecommerce
directory.
unified-instantsearch-ecommerce/export
which contains the assets you need for a working search in the sample app.
storefront-lwc
package.
Edit the file packages/storefront-lwc/scripts/plugin-copy-assets.js
:
storefront-lwc
automatically imports Unified UI files.
index.html
file:
packages/storefront-lwc/src/modules/
, create the following files:
algoliaUnifiedUi.html
and algoliaUnifiedUi.js
: